package org.wu.acw.client.ui;

import org.wu.framework.web.ui.LazyUI;

public class AcwClientLazyUI implements LazyUI {

    public static final String UI_URL = "/acw-local-client-ui/**";
    public static final String UI_URL_INDEX = "/acw-local-client-ui/index.html";
    public static final String CLASSPATH = "classpath:/acw-local-client/v1/";
    /**
     * 是否支持 default false
     * <p>
     * pathPatterns 格式 /acw-client-ui/**
     * locations 格式 classpath:/acw-local-client/v1/
     * </p>
     *
     * @return true、false
     */
    @Override
    public boolean support() {
        return true;
    }

    /**
     * @return UI 描述
     */
    @Override
    public String desc() {
        return "Acw 本地客户端";
    }

    /**
     * @return UI 访问的path
     */
    @Override
    public String pathPatterns() {
        return UI_URL;
    }

    /**
     * 返回页面首页地址
     *
     * @return String
     */
    @Override
    public String index() {
        return UI_URL_INDEX;
    }

    /**
     * @return 文件资源
     */
    @Override
    public String locations() {
        return CLASSPATH;
    }
}
